﻿using FaceWebServer.DB;
using FaceWebServer.DB.Device;
using System.Collections.Generic;

namespace FaceWebServer.Interface
{
    /// <summary>
    /// 设备远程操作服务
    /// </summary>
    public interface IDeviceRemoteService : IBaseService
    {
        /// <summary>
        /// 根据设备ID获取待操作的任务
        /// </summary>
        /// <returns></returns>
        List<RemoteTaskDetail> GetRemoteTaskByDeviceID(int iDeviceID);

        /// <summary>
        /// 新增一个远程操作任务
        /// </summary>
        /// <returns></returns>
        RemoteTaskDetail Add(RemoteTaskDetail newTask);

        /// <summary>
        /// 删除一个远程操作任务
        /// </summary>
        /// <param name="sn"></param>
        /// <returns></returns>
        RemoteTaskDetail Delete(int taskID);

        /// <summary>
        /// 更新指定设备的指定操作类型为已完成
        /// </summary>
        /// <param name="iDeviceID"></param>
        /// <param name="iTaskType"></param>
        void UpdateTaskRunStatusComplete(int iDeviceID, int iTaskType);
    }
}
